﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="MyAccount.aspx.cs" Inherits="Cotrobaie.MyAccount" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<div id="headerMiddle">
	<div id="logo1">
        <asp:ImageButton ID="ImageButton6" runat="server"  ImageUrl="~/images/logomic.png" OnClick="goHome"/>
	</div>			    
</div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="choices">
            <div id="popitems" style="" class="choices">
                <asp:ImageButton ID="ButtonStatistics" runat="server"  ImageUrl="~/images/comm.png" OnClick="tabClick"/>
            </div>
            <div id="recommitems" style="z-index:-10;">
                <asp:ImageButton ID="ButtonDescr" runat="server"  ImageUrl="~/images/recc.png" OnClick="tabClick"/>
            </div> 
            <div id="mostvisited" class="choices">
                <asp:ImageButton ID="ButtonComments" runat="server"  ImageUrl="~/images/acc.png" OnClick="tabClick"/>
            </div>
           
        </div>

   <div id="bigBulina">
    <asp:Image ID="Image1" runat="server" ImageUrl="~/images/biggreeen.png"/>
    <div runat="server" id="contentBigBulina" class="contentBigBulina" style="text-align:left; top:200px; left:300px; color:White; width:600px;">

        <div id="accountinf" runat="server">
            <table cellspacing="5px" >
                <tr> <td align="left" style="color:#272727; font-weight:600; height:25px; " colspan="2">EDIT YOUR ACCOUNT INFO</td> <td> &nbsp;</td></tr>
                <tr> <td align="left" colspan="2"> <hr style="width:270px; color:#d2d2d2"/></td></tr>
                <tr> <td> &nbsp;</td></tr>
                <tr>
                    <td align="left">
                        <asp:Label ID="UserNameLabel" runat="server" >Username</asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="LabelUserName" runat="server"  ForeColor="white"></asp:Label>
                    </td>
                </tr>

                 <tr>
                    <td align="left">
                        <asp:Label ID="LabelNume" runat="server" Text="Surname" AssociatedControlID="TextBoxNume" ></asp:Label>
                    </td> 
                    <td>
                        <asp:TextBox ID="TextBoxNume" runat="server" BorderWidth="1" BorderColor="#d2d2d2" 
                            BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" MaxLength="50" AutoCompleteType="LastName" ValidationGroup="GrupInregBona"></asp:TextBox>&nbsp;
                        <asp:RequiredFieldValidator ID="RFVNumeBona" runat="server" 
                            ControlToValidate="TextBoxNume" ErrorMessage="Campul Nume este obligatoriu"  Text="<blink style='color:#ff5b02;'>*</blink>"
                            ValidationGroup="GrupInregBona" SetFocusOnError="True" Display="Dynamic"/>
                        <asp:RegularExpressionValidator ID="REVNumeBona" runat="server" 
                            ErrorMessage="Campul Nume este incorect (trebuie sa contina numai litere si o dimensiune intre 2 si 50 de caractere)" 
                            Text="<blink style='color:#ff5b02;'>*</blink>" ValidationGroup="GrupInregBona" 
                            ControlToValidate="TextBoxNume" SetFocusOnError="true" Display="Dynamic" 
                            ValidationExpression="[a-zA-Z- ]{2,50}"/>
                    </td>  
                </tr>
                <tr>
                    <td align="left">
                        <asp:Label ID="LabelPrenume" runat="server" Text="First Name" AssociatedControlID="TextBoxPrenume"></asp:Label>
                    </td> 
                    <td>
                        <asp:TextBox ID="TextBoxPrenume" runat="server" BorderWidth="1" BorderColor="#d2d2d2"
                            BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" MaxLength="50" AutoCompleteType="FirstName" ValidationGroup="GrupInregBona"></asp:TextBox>&nbsp;
                        <asp:RequiredFieldValidator ID="RFVPrenumeBona" runat="server" 
                            ControlToValidate="TextBoxPrenume" 
                            ErrorMessage="Campul Prenume este obligatoriu"  Text="<blink style='color:#ff5b02;'>*</blink>"
                            ValidationGroup="GrupInregBona" SetFocusOnError="True" Display="Dynamic"/>
                        <asp:RegularExpressionValidator ID="REVPrenumeBona" runat="server" 
                            ErrorMessage="Campul Prenume este incorect (trebuie sa contina numai litere si o dimensiune intre 2 si 50 de caractere)" 
                            Text="<blink style='color:#ff5b02;'>*</blink>" ValidationGroup="GrupInregBona" 
                            ControlToValidate="TextBoxPrenume" SetFocusOnError="true" Display="Dynamic" 
                            ValidationExpression="[a-zA-Z- ]{2,50}"/>
                    </td> 
                </tr>

                 <tr>
                    <td align="left">
                        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="TextBoxEmail">E-mail </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxEmail" runat="server" BorderWidth="1" BorderColor="#d2d2d2"
                            BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" MaxLength="50" AutoCompleteType="Email" ValidationGroup="GrupInregBona" OnTextChanged="UsernameBone_TextChanged" AutoPostBack="True"></asp:TextBox>&nbsp;
                        <asp:RequiredFieldValidator ID="RFVEmailBona" runat="server" 
                            ControlToValidate="TextBoxEmail" 
                            ErrorMessage="Campul Adresa E-mail este obligatoriu"  Text="<blink style='color:#ff5b02;'>*</blink>"
                            ValidationGroup="GrupInregBona" SetFocusOnError="True" Display="Dynamic"/>
                        <asp:RegularExpressionValidator ID="REVEmailBona" runat="server" 
                            ErrorMessage="Campul Adresa E-mail este incorect" 
                            Text="<blink style='color:#ff5b02;'>*</blink>" ValidationGroup="GrupInregBona" 
                            ControlToValidate="TextBoxEmail" SetFocusOnError="true" Display="Dynamic" 
                            ValidationExpression="^[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,4})$"/>
                        <asp:CustomValidator ID="CuVEmailBona" runat="server" ControlToValidate="TextBoxEmail"
                            ErrorMessage="Adresa de E-mail exista deja in baza noastra de date. <br>Daca ati uitat numele de utilizator sau parola <br>puteti accesa pagina de <a href='RecuperareParola.aspx'>recuperare a parolei</a>" 
                            Text="<blink style='color:red;'>*</blink>" Display="Dynamic"
                            SetFocusOnError="True" ValidationGroup="GrupInregBona"/>
                    </td>
                </tr>

                <tr>
                    <td align="left">
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="TextBoxParola">Password </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxParola" runat="server" BorderWidth="1" BorderColor="#d2d2d2" 
                            BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" MaxLength="50" TextMode="Password" ValidationGroup="GrupInregBona"></asp:TextBox>&nbsp;
                        <asp:RegularExpressionValidator ID="REVParola" runat="server" 
                            ErrorMessage="Campul Parola trebuie sa contina minim 6 caractere" 
                            Text="<blink style='color:#ff5b02;'>*</blink>" ValidationGroup="GrupInregBona" 
                            ControlToValidate="TextBoxParola" SetFocusOnError="true" Display="Dynamic" 
                            ValidationExpression="^^[\w\W]{6,50}$"/>
                    </td>
                    <td>
                        <ajaxToolkit:PasswordStrength id="PassStrength" runat="server" 
                            TargetControlID="TextBoxParola" Enabled="True" MinimumLowerCaseCharacters="2" 
                            MinimumNumericCharacters="1" MinimumSymbolCharacters="1" 
                            MinimumUpperCaseCharacters="2" PreferredPasswordLength="10" 
                            PrefixText="Putere: " RequiresUpperAndLowerCaseCharacters="True" 
                
                            TextStrengthDescriptions="Foarte slaba (minim 6 carctere);Slaba (minim 6 carctere);Aproape buna (minim 6 carctere);Medie;Buna;Foarte Buna;Excelenta" 
                            TextCssClass="style2" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="PasswordHint" runat="server" Text="(min 6 characters)"
                            Font-Size="XX-Small" ForeColor="white"></asp:Label>
                                  
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="TextBoxConfirmPassword">Confirm  </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxConfirmPassword" runat="server" BorderWidth="1" BorderColor="#d2d2d2" 
                            BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" MaxLength="50" TextMode="Password" ValidationGroup="GrupInregBona"></asp:TextBox>&nbsp;
                        <asp:CompareValidator ID="CVParola2Bona" runat="server"
                            ErrorMessage="Nepotrivire Parole" ControlToCompare="TextBoxParola" 
                            ControlToValidate="TextBoxConfirmPassword" SetFocusOnError="True" 
                            Text="<blink style='color:#ff5b02;'>*</blink>" ValidationGroup="GrupInregBona" 
                            Display="Dynamic"></asp:CompareValidator>
                    </td>
                </tr>
        
        
                 <tr><td>&nbsp;</td></tr>
                <tr>
                    <td align="center" colspan="2" style="color:#ff5b02;">
                        <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                    </td>
                </tr>
                <tr><td>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        HeaderText="Trebuie sa completati corect urmatoarele campuri: " 
                        ShowMessageBox="True" ShowSummary="False" 
                        ValidationGroup="GrupInregBona" />
                </td></tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="ButtonChangeAccountInfo" runat="server" Text="Edit information" CssClass="bigbutton"
                         ValidationGroup="GrupInregBona" Width="150px" 
                            onclick="ButtonChangeAccountInfo_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div></div>
    
</asp:Content>
